//
//  MA.h
//  Chart
//
//  Created by ma xiaoyang on 6/18/13.
//
//

#ifndef __Chart__MA__
#define __Chart__MA__

#include "IndexData.h"

#include <string>
#include <vector>

namespace ytx
{
    class MA : public IndexData
    {
    public:
        std::vector<std::vector<double> > originLineData;


        MA(IndexConfig indexConfig);

        virtual ~MA();

        virtual void calculate(Quotation * data);

        virtual void updateLastest(Quotation * data);

        virtual std::string getCrosshairYData(int index);

        std::vector<std::vector<double> > getOriginLineData();

        void setOriginLineData(std::vector<std::vector<double> > originLineData);

        virtual int getDataLength() const;
    };
}


#endif /* defined(__Chart__MA__) */
